home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / SOLAR / Autocatalysis / print-soup < prev   
Text File  |  1998-10-23  |  544b  |  20 lines

  1. print-soup soup-name
  2.  
  3. If you come up with a soup that is able to generate useful melodies, rhythms, chords, velocities etc. you can take a snapshot of the soup with print-soup.
  4.  
  5. (initdef)
  6. (defsym a '(a b c))
  7. (defsym b '(b a c))
  8. (defsym c '(c))
  9.  
  10. (init-soup 'soup (gen-trans a 3))
  11.  
  12. (print-soup 'soup)
  13. -->
  14. (def-soup 'soup
  15.   '((d e d) (c d e) (e f d e) (f e f) (a b c d) (f e f d e f))
  16.   '((d f c) (e d f) (f c d) (d e) (d e f e)))
  17.  
  18. When you copy the output in the source file and evaluate it before gen-catalyze you'll be able to restore a soup.
  19.  
  20.